package sqlib;

import java.lang.reflect.Field;

public class IDPrefixPrimaryKeyProvider implements PrimaryKeyProvider {


	@Override
	public boolean isPrimaryKey(Field f) {
		return f.getName().startsWith("id_");
	}

	@Override
	public String getPrimaryKeyID(Field f) {
		return f.getName().substring("id_".length());
	}

}
